<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    div{
        width: 200px;
        height: 200px;
        margin:150px auto;
        border: 5px solid green;
        transition: 5s;
    }
    .c1{
        transform: translate(50px,50px) rotate(45deg);
    }
    .c2{
        /* transform-origin: 0px 0px; */
        transform: rotate(45deg) translate(100px,100px); 
    }



    </style>
</head>
<body>
    <div class="c1">div1</div>
    <div class="c2">div2</div>
</body>
</html>